
<div class="xf_ht_jr_obu_width">
	<div class="xf_ht_jr_obu_title clr">
		<div class="xf_ht_jr_obu_l">
			风控科目详情
		</div>
		<div class="xf_ht_jr_obu_r">
			&nbsp;
		</div>
	</div>
	<div class="xf_ht_ptjkb_shok">
		<ul class="xf_ht_ptjkb_shok_ul">
			<li>
				用户名：${item?.userName}
			</li>
			<li>
				科目种类：${item?.auditItem?.name}
			</li>
			<li>
				<div class="xf_ht_ptjkb_lilist_l">
					科目图片：*{(按住图片拖动)}*
				</div>
				*{<div class="xf_ht_ptjkb_lilist_r">
					<a href="#">上一张</a>
					<a href="#">下一张</a>
				</div>}*
				<div class="clear"></div>
				<div class="xf_ht_ptjkb_lilist_img" id="div_img">
					#{img src:"${item?.imageFileName}",id:"imageFileName",alt:"",escape:"",title:"${item?.auditItem?.name}"}#{/img}
				</div>
				<div class="xf_ht_ptjkb_lilist_button">
					<input type="button" value="放大" onclick="imgToSize(50)"/>
					<input type="button" value="缩小" onclick="imgToSize(-50)"/>
					<input type="button" value="向右翻转" onclick="$('#imageFileName').rotateRight();"/>
					<input type="button" value="向左翻转" onclick="$('#imageFileName').rotateLeft();"/>
					<input type="button" value="还原" onclick="resetImage();" />
				</div>
			</li>
		</ul>
	</div>
	<div class="xf_ht_ptjbk_shok_bottom">
		<table border="0" cellspacing="0" cellpadding="0"
			class="xf_ht_jr_obu_form xf_ht_sh_form2" width="100%">
			<tr>
				<td align="right" width="140">
					科目可见性：
				</td>
				<td>
					<span class="xf_ht_jr_obttd_span">
					#{if item?.isVisible}
						可见
					#{/if}
					#{else}
						不可见
					#{/else}
				    </span>
				</td>
			</tr>
			<tr>
				<td align="right" width="140">
					审核状态：
				</td>
				<td>
					<span class="xf_ht_jr_obttd_span">
						#{if item?.status == 0}
							未提交
						#{/if}
						#{elseif item?.status == 1}
							审核中
						#{/elseif}
						#{elseif item?.status == 2}
							通过审核
						#{/elseif}
						#{elseif item?.status == 3}
							过期失效
						#{/elseif}
						#{else}
							未通过审核
						#{/else}
					</span>
				</td>
			</tr>
			<tr>
				<td align="right" valign="top" class="xf_ht_jr_obttd_l">
					审核意见：
				</td>
				<td>
					<textarea class="xf_ht_jr_obttd_textarea xf_ht_jr_obttd_textarea2" readonly="readonly">${item?.suggestion}</textarea>
				</td>
			</tr>
		</table>
	</div>
</div>

<script type="text/javascript" src="@{'/public/javascripts/rotate.js'}"></script>

<script type="text/javascript">
	//放大缩小图片
	function imgToSize(size) {
		var img = $("#imageFileName");
		var oWidth=img.width(); //取得图片的实际宽度
		var oHeight=img.height(); //取得图片的实际高度
		img.width(oWidth + size);
		img.height(oHeight + size/oWidth*oHeight);
	}

	$(function(){
		$(".xf_ht_jr_obu_r").click(function(){
		   $(this).parents(".xf_ht_ttc").hide();
		 });
	});
	
	function resetImage() {
		$("#div_img").html('#{img src:"${item?.imageFileName}",id:"imageFileName",alt:"",escape:"",title:"${item?.auditItem?.name}"}#{/img}');
	}
</script>
